<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" pageEncoding="ISO-8859-1" import="java.util.List,com.careersersystem.entity.Student"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>



<html:html lang="true">
  <head>
    <html:base />
    
    <title>empviewstu.jsp</title>

	<link href="common/layout.css" rel="stylesheet" type="text/css" />

  </head>
  <body>
<div id="container">
  <div id="header"></div>
  <div id="mainContent">
    <div id="sidebar">
    <div id="sidebarmenu">
    <div id="sidebar1item"><p style="margin:2 10"><a href=history.jsp>History</a></p></div>
    <div id="sidebar1item"><p style="margin:2 10"><a href=jforum.jsp>Forum</a></p></div>
    <div id="sidebar1item"><p style="margin:2 10"><a href=history.jsp>Squirrelmail</a></p></div>
    <div id="sidebar1item"><p style="margin:2 10"><a href=http://www.ucc.ie>UCC</a></p></div>
    </div>
    </div>
   
    <div id="content_1">
    <c:if test="${empty list}">
	 Sorry,No Result found for the term
	 </c:if>
	 <c:if test="${!empty list}">
      <table  >
      <tr>
      <td>First Name</td>
      <td>Last Name</td>
      <td>Age</td>
      <td>Start Year</td>
      <td>E-Mail</td>
      <td>Down Load CV</td>
      </tr>
      <%List result=(List)session.getAttribute("list");
        
        for(int i=0;i<result.size();i++){
        Student stu=(Student)result.get(i); %>
      
      
      <tr align ="center">
     
	    <td><%=stu.getFname() %></td>
	    <td><%=stu.getLname() %></td>
	    <td><%=stu.getAge() %></td>
	    <td><%=stu.getStartyear() %></td>
	    <td><%=stu.getEmail() %></td>
	    <td><a href="downLoad.do?cvId=<%=stu.getCvId() %>" >Down Load</a></td>
	   
	    </tr>
	    <% }%>
      	  
      </table>
      </c:if>
    </div>
  </div>
  <div id="footer"><hr size="1" noshade></hr><br>&copy; Department of Computer Science, University College Cork, Ireland.<br>
<a href="/people/contact.php">Contact us</a> | <a href="mailto:webmaster@cs.ucc.ie">Website comments</a><br><span style="display:none"></span></div>
</div>

</body>
</html:html>
